import pinyin

a=pinyin.get("口罩",format='strip',delimiter="_")
print(a)

